<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import { onMounted } from 'vue'
import { useCounterStore } from "@/stores/counter"
onMounted(()=>{
    // 页面开始加载时修改font-size
    var html = document.getElementsByTagName("html")[0];
    var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
    // 这里的1920是指设计图的大小,自己根据实际情况改变
    html.style.fontSize = (oWidth / 20)+ "px";
    // console.log("rem:", html.style.fontSize);
})
</script>
<template>
 <RouterView/>
</template>
<style lang="scss" scoped>

</style>
